package com.fyw.kotlin.util

import android.content.Context
import android.widget.Toast

/**
 * Toast工具类
 * Created by FYW on 2017/9/27.
 */
fun Context.toastShort(msg: String, duration: Int = Toast.LENGTH_SHORT) {
    Toast.makeText(this, msg, duration).show()
}

fun Context.toastLong(msg: String, duration: Int = Toast.LENGTH_LONG) {
    Toast.makeText(this, msg, duration).show()
}